{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>adm_bookAdd</title>
    <link rel="stylesheet" href="{% static 'css/bookAlter.css' %}">
</head>
<body>
    <form action="" enctype='multipart/form-data' method="post">
        {% csrf_token %}
        <h1>增加图书：</h1>
        <p>书籍ID：<input type="text" name="book_id" placeholder="书籍ID" required></p>
        <p>书籍名：<input type="text" name="book_name" placeholder="书籍名" required></p>
        <p>作者：<input type="text" name="book_author" placeholder="作者" required></p>
        <p>发行时间：<input type="date" name="book_pubDate" placeholder="发行时间" required></p>
        <p>出版社：<input type="text" name="book_publisher" placeholder="出版社" required></p>
        <p>价格：<input type="text" name="book_price" placeholder="价格" required></p>
        <p>现存数量：<input type="text" name="book_num" placeholder="现存数量" required></p>
        <p>总数量：<input type="text" name="book_total" placeholder="总数量" required></p>
        <p>介绍文本：<textarea type="text" name="book_intro" placeholder="介绍文本" required></textarea></p>
        <p>上传预览图：<input type="file" name="pic" required></p>
        <p><input type="submit" value="提交"></p>
    </form>
    <a href="/adm_book" class="return-link">返回</a>
</body>
</html>